//
//  CategoryViewController.swift
//  swift-practice
//
//  Created by yzt on 2022/10/20.
//

import UIKit

class CategoryViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        navigationItem.rightBarButtonItem = UIBarButtonItem(image: nil, style: .plain, target: self, action: #selector(rightButtonClicked))
        
    }
    
    private func setupScrollView(){
        view.addSubview(scrollView)
    }


    @objc func rightButtonClicked(){
        
    }
    
    private lazy var scrollView : UIScrollView = {
        let scrollView = UIScrollView()
        scrollView.isScrollEnabled = true
        scrollView.backgroundColor = .yellow
        scrollView.frame = CGRect(x: 0, y: 0, width: 200, height: 200)
        return scrollView
    }()
    
}
